import i18n from "@/lang";
import { tunnyRequest, pandaRequest, orinusRequest, gentianRequest } from "@/utils/request";

// import { createService } from "@/utils/request";
// import { AppModule } from '../store/modules/app';
import { encrypt } from '../utils/auth';

// const tunnyApi = (options: any) => createService(AppModule.baseURL)(options);
// const pandaRequest = (options: any) => createService(AppModule.baseURL)(options);

export default class gentianApi {
  /**
   * 获取订单列表
   */
  public postGenTian(data: any) {
    return gentianRequest({
      url:  "desktop_status",
      method: "POST",
      data
    });
    // data: {"resource": "", "platform_desktop_id": "", "resource_type": "", "action": ""}
    // resource: resource id
    // resource_type: st_resource|mt_resource
    // action: "POWERON", "POWEROFF", "RESET", "SUSPEND", "REBOOT" 
  }
}
